package com.gdth.animation;

import android.view.animation.Animation;
import android.view.animation.ScaleAnimation;

public class BaseScaleAnimation extends ScaleAnimation{

	public BaseScaleAnimation(){
		super(0.0f, 1.0f, 0.0f, 1.0f, 
				Animation.RELATIVE_TO_SELF, 0.0f,
				Animation.RELATIVE_TO_SELF, 0.0f);
	}
	public BaseScaleAnimation(float fromX, float toX, float fromY, float toY,
			int pivotXType, float pivotXValue, int pivotYType, float pivotYValue) {
		super(fromX, toX, fromY, toY, pivotXType, pivotXValue, pivotYType, pivotYValue);
		// TODO Auto-generated constructor stub
	}
	
	public void setAnimation(AnimationListener mAnimationListener){
		this.setAnimationListener(mAnimationListener);
	}
	
	/**
	 * 设置动画持续时间
	 */
	public void setDurations(long durationMillis){
		this.setDuration(durationMillis);
	}
	
	/**
	 * 动画执行完后是否停留在执行完的状态
	 */
	public void setFillAfters(boolean arg0){
		this.setFillAfter(arg0);
	}
	
	/**
	 * 设置重复次数 
	 */
	public void setRepeatCounts(int repeatCount){
		this.setRepeatCount(repeatCount);
	}
	
	/**
	 * 执行前的等待时间
	 */
	public void setStartOffsets(long startOffset){
		this.setStartOffset(startOffset);
	}
}
